<template>
  <div>
    <div class="item border-bottom"
    v-for=" (item,index) of list"
    :key="index"
    >{{item.title}}

    <div class="item-children" v-if="item.children">
      <detail-list :list="item.children"></detail-list>
    </div>
    </div>
   </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
};
</script>

<style lang="stylus" scoped>
.item
  line-height .2rem
  padding .2rem
</style>
